package com.src.computec.radar.base.source;
/*
 * PathSource.java
 *
 * Created on 1 de junio de 2006, 13:49
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

import java.util.ResourceBundle;

/**
 *
 * @author root
 */
public class CoreSource 
{
    protected static CoreSource coreSource;
    
    private static ResourceBundle ldapSetup;
    private static ResourceBundle parametrosSetup;
    private static ResourceBundle utilidadesSetup;
    private static ResourceBundle imagenesSetup;
    
    /** Creates a new instance of PathImage */
    protected CoreSource() {
        ldapSetup = ResourceBundle.getBundle("LdapSetup");
        parametrosSetup = ResourceBundle.getBundle("ParametrosSetup");
        utilidadesSetup = ResourceBundle.getBundle("UtilidadesSetup");    
        imagenesSetup = ResourceBundle.getBundle("ImagenesSetup");
    }

    public static CoreSource getInstance() {
        if (coreSource == null) {
            coreSource = new CoreSource();
        }
        return coreSource;
    }

    public String getLdapSetupKey(String key) {
        return ldapSetup.getString(key); 
    }
   
    public String getParametrosSetupKey(String key) {
        return parametrosSetup.getString(key); 
    }

    public String getUtilidadesSetupKey(String key) {
        return utilidadesSetup.getString(key); 
    }
    
    public String getImagenesSetupKey(String key) {
        return imagenesSetup.getString(key); 
    }
}